package Classes.GameUtils
{
	import flash.events.ContextMenuEvent;
	import flash.ui.*;
	
	/**
	 *  右键菜单类
	 * @author tyh
	 */	
	public class MenuVersion
	{
		public function MenuVersion(obj:Object, appName:String, ver:String)
		{
			var rightMenu:ContextMenu = new ContextMenu();
			//删除原始菜单状态!
			rightMenu.hideBuiltInItems();
			var cmi:ContextMenuItem =  new ContextMenuItem(" v"+appName +"."+ver);//v + 日期 + . + 修改次数

			cmi.enabled = false;
			rightMenu.customItems.push(cmi);
			obj.contextMenu = rightMenu;
		}
		
	}
}